import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import { fileURLToPath } from 'url'

const __filename = fileURLToPath(import.meta.url)

const _driname = path.dirname(__filename)
//方便使用@引文件路径
//const pathResolve =(dir)=>resolve(_driname,dir)
// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  reslove:{
    alias:{
      "@":path.resolve(_driname,"./src"),
    }
  }
})
